home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1986-05-06 | 7.5 KB | [ TEXT/EDIT]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Tue May 6 09:39:57 1986, modified Tue May 6 09:39:57 1986, creator Macintosh Edit, type ASCII, 7156 bytes "vidstuff.asm" , at 0x1c74 348 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ EDIT]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0c 76 69 64 73 74 75 | 66 66 2e 61 73 6d 00 00 |..vidstu|ff.asm..| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......| |00000050| 00 00 00 00 00 1b f4 00 | 00 01 5c 9a e3 ba 2d 9a |........|..\...-.| |00000060| e3 ba 2d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..-.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 db fb 00 00 |........|........| |00000080| 3b 20 76 69 64 20 2d 2d | 20 52 6f 75 74 69 6e 65 |; vid --| Routine| |00000090| 73 20 74 6f 20 73 79 6e | 63 68 72 6f 6e 69 7a 65 |s to syn|chronize| |000000a0| 20 73 77 69 74 63 68 69 | 6e 67 20 62 65 74 77 65 | switchi|ng betwe| |000000b0| 65 6e 20 74 68 65 20 74 | 77 6f 20 68 61 72 64 77 |en the t|wo hardw| |000000c0| 61 72 65 20 73 63 72 65 | 65 6e 73 0d 3b 20 69 6e |are scre|ens.; in| |000000d0| 20 73 79 6e 63 20 77 69 | 74 68 20 74 68 65 20 73 | sync wi|th the s| |000000e0| 63 72 65 65 6e 20 72 65 | 66 72 65 73 68 2c 20 61 |creen re|fresh, a| |000000f0| 6c 6c 6f 77 69 6e 67 20 | 73 6d 6f 6f 74 68 20 61 |llowing |smooth a| |00000100| 6e 69 6d 61 74 69 6f 6e | 2e 0d 3b 20 20 20 20 20 |nimation|..; | |00000110| 20 20 6d 69 6b 65 20 6d | 6f 72 74 6f 6e 2c 20 6d | mike m|orton, m| |00000120| 61 79 20 31 39 38 36 0d | 0d 3b 20 66 75 6e 63 74 |ay 1986.|.; funct| |00000130| 69 6f 6e 20 20 76 69 64 | 77 61 69 74 20 20 20 20 |ion vid|wait | |00000140| 28 56 41 52 20 62 6c 6f | 63 6b 3a 20 76 69 64 69 |(VAR blo|ck: vidi| |00000150| 6e 66 6f 29 3a 20 6c 6f | 6e 67 69 6e 74 3b 09 20 |nfo): lo|ngint;. | |00000160| 20 20 20 20 20 20 65 78 | 74 65 72 6e 61 6c 3b 0d | ex|ternal;.| |00000170| 3b 20 70 72 6f 63 65 64 | 75 72 65 20 76 69 64 73 |; proced|ure vids| |00000180| 74 61 72 74 20 20 20 28 | 56 41 52 20 62 6c 6f 63 |tart (|VAR bloc| |00000190| 6b 3a 20 76 69 64 69 6e | 66 6f 3b 20 70 65 72 69 |k: vidin|fo; peri| |000001a0| 6f 64 3a 20 69 6e 74 65 | 67 65 72 29 3b 20 20 65 |od: inte|ger); e| |000001b0| 78 74 65 72 6e 61 6c 3b | 0d 3b 20 70 72 6f 63 65 |xternal;|.; proce| |000001c0| 64 75 72 65 20 67 65 74 | 61 6c 74 73 63 72 65 65 |dure get|altscree| |000001d0| 6e 3b 09 09 09 09 20 20 | 20 20 20 20 20 65 78 74 |n;.... | ext| |000001e0| 65 72 6e 61 6c 3b 0d 0d | 3b 20 4d 44 53 20 41 53 |ernal;..|; MDS AS| |000001f0| 53 45 4d 42 4c 45 52 20 | 56 45 52 53 49 4f 4e 0d |SEMBLER |VERSION.| |00000200| 3b 20 43 6f 6e 76 65 72 | 74 65 64 20 62 79 20 44 |; Conver|ted by D| |00000210| 61 76 69 64 20 45 2e 20 | 53 6d 69 74 68 20 66 6f |avid E. |Smith fo| |00000220| 72 20 4d 61 63 54 75 74 | 6f 72 2e 0d 3b 0d 3b 0d |r MacTut|or..;.;.| |00000230| 09 78 64 65 66 09 76 69 | 64 77 61 69 74 0d 09 78 |.xdef.vi|dwait..x| |00000240| 64 65 66 09 76 69 64 73 | 74 61 72 74 0d 09 78 64 |def.vids|tart..xd| |00000250| 65 66 09 67 65 74 61 6c | 74 73 63 72 65 65 6e 0d |ef.getal|tscreen.| |00000260| 09 0d 09 49 6e 63 6c 75 | 64 65 20 51 75 69 63 6b |...Inclu|de Quick| |00000270| 45 71 75 2e 44 09 3b 20 | 4d 44 53 20 74 6f 6f 6c |Equ.D.; |MDS tool| |00000280| 62 6f 78 20 65 71 75 61 | 74 65 73 20 61 6e 64 20 |box equa|tes and | |00000290| 74 72 61 70 73 0d 09 49 | 6e 63 6c 75 64 65 20 53 |traps..I|nclude S| |000002a0| 79 73 45 71 75 2e 44 0d | 09 49 6e 63 6c 75 64 65 |ysEqu.D.|.Include| |000002b0| 20 54 6f 6f 6c 45 71 75 | 2e 44 0d 09 49 6e 63 6c | ToolEqu|.D..Incl| |000002c0| 75 64 65 20 4d 61 63 54 | 72 61 70 73 2e 44 0d 0d |ude MacT|raps.D..| |000002d0| 09 4d 41 43 52 4f 20 2e | 65 71 75 20 3d 20 65 71 |.MACRO .|equ = eq| |000002e0| 75 7c 09 3b 20 63 6f 6e | 76 65 72 74 20 4c 69 73 |u|.; con|vert Lis| |000002f0| 61 20 61 73 73 65 6d 62 | 6c 65 72 20 73 74 75 66 |a assemb|ler stuf| |00000300| 66 20 74 6f 20 4d 44 53 | 20 4d 61 63 0d 09 4d 41 |f to MDS| Mac..MA| |00000310| 43 52 4f 20 5f 68 69 64 | 65 63 75 72 73 20 3d 20 |CRO _hid|ecurs = | |00000320| 5f 48 69 64 65 43 75 72 | 73 6f 72 7c 0d 09 4d 41 |_HideCur|sor|..MA| |00000330| 43 52 4f 20 5f 73 68 6f | 77 63 75 72 73 20 3d 20 |CRO _sho|wcurs = | |00000340| 5f 53 68 6f 77 43 75 72 | 73 6f 72 7c 0d 09 0d 3b |_ShowCur|sor|...;| |00000350| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 6f 66 20 73 | definit|ion of s| |00000360| 74 61 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tate inf|ormation| |00000370| 20 72 65 63 6f 72 64 2e | 20 20 2a 2a 2a 20 61 6c | record.| *** al| |00000380| 73 6f 20 64 65 66 69 6e | 65 64 20 6f 6e 20 50 61 |so defin|ed on Pa| |00000390| 73 63 61 6c 20 73 69 64 | 65 2e 20 2a 2a 2a 0d 0d |scal sid|e. ***..| |000003a0| 76 62 6c 73 69 7a 65 20 | 2e 65 71 75 20 20 20 20 |vblsize |.equ | |000003b0| 76 62 6c 70 68 61 73 65 | 2b 32 20 20 20 20 20 20 |vblphase|+2 | |000003c0| 3b 20 73 69 7a 65 20 6f | 66 20 56 42 4c 20 62 6c |; size o|f VBL bl| |000003d0| 6f 63 6b 0d 0d 69 76 62 | 6c 20 20 20 20 2e 65 71 |ock..ivb|l .eq| |000003e0| 75 20 20 20 20 30 09 20 | 20 20 20 20 20 20 20 3b |u 0. | ;| |000003f0| 20 56 42 4c 20 74 61 73 | 6b 20 69 6e 66 6f 72 6d | VBL tas|k inform| |00000400| 61 74 69 6f 6e 0d 69 72 | 65 71 20 20 20 20 2e 65 |ation.ir|eq .e| |00000410| 71 75 20 20 20 20 69 76 | 62 6c 2b 76 62 6c 73 69 |qu iv|bl+vblsi| |00000420| 7a 65 20 20 20 20 3b 20 | 28 69 6e 74 65 67 65 72 |ze ; |(integer| |00000430| 29 20 72 65 71 75 65 73 | 74 3a 20 61 6c 74 2f 64 |) reques|t: alt/d| |00000440| 65 66 61 75 6c 74 2f 73 | 74 6f 70 2f 6e 6f 6e 65 |efault/s|top/none| |00000450| 0d 69 70 65 72 69 6f 64 | 20 2e 65 71 75 20 20 20 |.iperiod| .equ | |00000460| 20 69 72 65 71 2b 32 09 | 20 20 20 20 20 20 20 20 | ireq+2.| | |00000470| 3b 20 28 69 6e 74 65 67 | 65 72 29 20 64 65 66 61 |; (integ|er) defa| |00000480| 75 6c 74 20 70 65 72 69 | 6f 64 20 69 6e 20 74 69 |ult peri|od in ti| |00000490| 63 6b 73 0d 69 64 65 6c | 61 79 73 20 2e 65 71 75 |cks.idel|ays .equ| |000004a0| 20 20 20 20 69 70 65 72 | 69 6f 64 2b 32 20 20 20 | iper|iod+2 | |000004b0| 20 20 20 20 3b 20 28 6c | 6f 6e 67 69 6e 74 29 20 | ; (l|ongint) | |000004c0| 6e 75 6d 62 65 72 20 6f | 66 20 74 69 6d 65 73 20 |number o|f times | |000004d0| 77 65 27 76 65 20 68 61 | 64 20 74 6f 20 64 65 6c |we've ha|d to del| |000004e0| 61 79 20 66 6f 72 20 61 | 20 74 69 63 6b 0d 0d 69 |ay for a| tick..i| |000004f0| 73 69 7a 65 20 20 20 2e | 65 71 75 20 20 20 20 69 |size .|equ i| |00000500| 64 65 6c 61 79 73 2b 34 | 20 20 20 20 20 20 20 3b |delays+4| ;| |00000510| 20 73 69 7a 65 20 6f 66 | 20 d2 69 6e 66 6f d3 20 | size of| .info. | |00000520| 62 6c 6f 63 6b 0d 0d 76 | 69 61 62 61 73 65 09 2e |block..v|iabase..| |00000530| 65 71 75 09 24 31 44 34 | 09 3b 24 31 44 34 20 56 |equ.$1D4|.;$1D4 V| |00000540| 49 41 20 62 61 73 65 20 | 61 64 64 72 65 73 73 20 |IA base |address | |00000550| 67 6c 6f 62 61 6c 20 28 | 56 49 41 29 0d 43 75 72 |global (|VIA).Cur| |00000560| 50 61 67 65 09 2e 65 71 | 75 09 24 39 33 36 09 3b |Page..eq|u.$936.;| |00000570| 24 39 33 36 20 61 6c 74 | 65 72 6e 61 74 65 20 73 |$936 alt|ernate s| |00000580| 63 72 65 65 6e 20 70 61 | 67 65 20 73 74 61 74 75 |creen pa|ge statu| |00000590| 73 20 67 6c 6f 62 61 6c | 20 28 43 75 72 50 61 67 |s global| (CurPag| |000005a0| 65 4f 70 74 69 6f 6e 29 | 0d 0d 3b 0d 3b 20 72 65 |eOption)|..;.; re| |000005b0| 71 75 65 73 74 20 64 65 | 66 69 6e 69 74 69 6f 6e |quest de|finition| |000005c0| 73 3a 20 74 68 65 20 68 | 69 67 68 20 6c 65 76 65 |s: the h|igh leve| |000005d0| 6c 20 63 6f 64 65 20 73 | 61 76 65 73 20 74 68 65 |l code s|aves the| |000005e0| 73 65 20 66 6f 72 20 75 | 73 20 74 6f 20 73 65 65 |se for u|s to see| |000005f0| 2e 0d 3b 20 2a 2a 2a 20 | 6e 6f 74 65 3a 20 74 68 |..; *** |note: th| |00000600| 65 20 63 6f 64 65 20 61 | 74 20 d2 76 62 6c d3 20 |e code a|t .vbl. | |00000610| 64 65 70 65 6e 64 73 20 | 6f 6e 20 74 68 65 73 65 |depends |on these| |00000620| 20 76 61 6c 75 65 73 2e | 20 2a 2a 2a 0d 3b 0d 72 | values.| ***.;.r| |00000630| 65 71 61 6c 74 20 20 2e | 65 71 75 20 20 20 20 30 |eqalt .|equ 0| |00000640| 09 09 20 20 20 20 20 20 | 20 20 3b 20 72 65 71 75 |.. | ; requ| |00000650| 65 73 74 20 73 77 69 74 | 63 68 20 74 6f 20 61 6c |est swit|ch to al| |00000660| 74 65 72 6e 61 74 65 20 | 73 63 72 65 65 6e 0d 72 |ternate |screen.r| |00000670| 65 71 64 65 66 20 20 2e | 65 71 75 20 20 20 20 31 |eqdef .|equ 1| |00000680| 09 09 20 20 20 20 20 20 | 20 20 3b 20 72 65 71 75 |.. | ; requ| |00000690| 65 73 74 20 73 77 69 74 | 63 68 20 74 6f 20 64 65 |est swit|ch to de| |000006a0| 66 61 75 6c 74 20 73 63 | 72 65 65 6e 0d 72 65 71 |fault sc|reen.req| |000006b0| 73 74 6f 70 20 2e 65 71 | 75 20 20 20 20 32 09 09 |stop .eq|u 2..| |000006c0| 20 20 20 20 20 20 20 20 | 3b 20 73 74 6f 70 20 6f | |; stop o| |000006d0| 6e 20 64 65 66 61 75 6c | 74 20 73 63 72 65 65 6e |n defaul|t screen| |000006e0| 0d 72 65 71 6e 6f 6e 65 | 20 2e 65 71 75 20 20 20 |.reqnone| .equ | |000006f0| 20 33 09 09 20 20 20 20 | 20 20 20 20 3b 20 6e 6f | 3.. | ; no| |00000700| 74 68 69 6e 67 20 72 65 | 71 75 65 73 74 65 64 0d |thing re|quested.| |00000710| 0d 3b 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.; -----|--------| |00000720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.| |00000760| 0d 3b 0d 3b 20 66 75 6e | 63 74 69 6f 6e 20 76 69 |.;.; fun|ction vi| |00000770| 64 77 61 69 74 20 28 62 | 6c 6f 63 6b 3a 20 70 74 |dwait (b|lock: pt| |00000780| 72 29 3a 20 6c 6f 6e 67 | 69 6e 74 3b 20 65 78 74 |r): long|int; ext| |00000790| 65 72 6e 61 6c 3b 0d 3b | 20 74 68 69 73 20 72 6f |ernal;.;| this ro| |000007a0| 75 74 69 6e 65 20 69 73 | 20 63 61 6c 6c 65 64 20 |utine is| called | |000007b0| 77 68 65 6e 20 74 68 65 | 20 6e 65 78 74 20 61 6e |when the| next an| |000007c0| 69 6d 61 74 69 6f 6e 20 | 66 72 61 6d 65 20 69 73 |imation |frame is| |000007d0| 20 72 65 61 64 79 20 74 | 6f 20 62 65 20 73 68 6f | ready t|o be sho| |000007e0| 77 6e 0d 3b 20 61 6e 64 | 20 74 68 65 20 6d 61 69 |wn.; and| the mai| |000007f0| 6e 20 70 72 6f 67 72 61 | 6d 20 68 61 73 20 6d 61 |n progra|m has ma| |00000800| 64 65 20 61 20 72 65 71 | 75 65 73 74 20 74 6f 20 |de a req|uest to | |00000810| 64 69 73 70 6c 61 79 20 | 74 68 61 74 20 66 72 61 |display |that fra| |00000820| 6d 65 2e 20 20 69 74 20 | 77 61 69 74 73 0d 3b 20 |me. it |waits.; | |00000830| 75 6e 74 69 6c 20 74 68 | 65 20 6e 65 77 20 66 72 |until th|e new fr| |00000840| 61 6d 65 20 69 73 20 62 | 65 69 6e 67 20 73 68 6f |ame is b|eing sho| |00000850| 77 6e 2c 20 74 68 65 6e | 20 72 65 74 75 72 6e 73 |wn, then| returns| |00000860| 2e 20 20 69 74 20 61 6c | 73 6f 20 72 65 74 75 72 |. it al|so retur| |00000870| 6e 73 20 74 68 65 0d 3b | 20 61 70 70 72 6f 78 69 |ns the.;| approxi| |00000880| 6d 61 74 65 20 74 69 6d | 65 20 69 74 20 68 61 64 |mate tim|e it had| |00000890| 20 74 6f 20 77 61 69 74 | 2c 20 69 6e 20 61 72 62 | to wait|, in arb| |000008a0| 69 74 72 61 72 79 20 75 | 6e 69 74 73 2e 20 20 74 |itrary u|nits. t| |000008b0| 68 69 73 20 68 65 6c 70 | 73 20 79 6f 75 20 66 69 |his help|s you fi| |000008c0| 6e 64 0d 3b 20 6f 75 74 | 20 68 6f 77 20 6d 75 63 |nd.; out| how muc| |000008d0| 68 20 73 6c 61 63 6b 20 | 79 6f 75 20 68 61 76 65 |h slack |you have| |000008e0| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 74 69 6d | between| the tim| |000008f0| 65 20 74 68 65 20 66 72 | 61 6d 65 20 69 73 20 72 |e the fr|ame is r| |00000900| 65 61 64 79 20 61 6e 64 | 20 74 68 65 20 74 69 6d |eady and| the tim| |00000910| 65 0d 3b 20 69 74 27 73 | 20 61 63 74 75 61 6c 6c |e.; it's| actuall| |00000920| 79 20 75 73 65 64 2e 0d | 0d 76 69 64 77 61 69 74 |y used..|.vidwait| |00000930| 3a 0d 20 20 20 20 20 20 | 20 20 6d 6f 76 65 2e 6c |:. | move.l| |00000940| 20 20 28 53 50 29 2b 2c | 41 31 09 20 20 20 20 20 | (SP)+,|A1. | |00000950| 20 20 20 3b 20 70 6f 70 | 20 72 65 74 75 72 6e 0d | ; pop| return.| |00000960| 20 20 20 20 20 20 20 20 | 6d 6f 76 65 2e 6c 20 20 | |move.l | |00000970| 28 53 50 29 2b 2c 41 30 | 09 20 20 20 20 20 20 20 |(SP)+,A0|. | |00000980| 20 3b 20 70 6f 70 20 62 | 6c 6f 63 6b 20 70 6f 69 | ; pop b|lock poi| |00000990| 6e 74 65 72 0d 20 20 20 | 20 20 20 20 20 6d 6f 76 |nter. | mov| |000009a0| 65 71 20 20 20 23 2d 31 | 2c 44 30 09 09 20 20 20 |eq #-1|,D0.. | |000009b0| 20 20 20 20 20 3b 20 77 | 69 6c 6c 20 62 65 20 30 | ; w|ill be 0| |000009c0| 20 69 66 20 77 65 20 65 | 78 69 74 20 72 69 67 68 | if we e|xit righ| |000009d0| 74 20 61 77 61 79 0d 0d | 76 69 64 77 32 3a 20 20 |t away..|vidw2: | |000009e0| 61 64 64 71 2e 6c 20 20 | 23 31 2c 44 30 09 09 20 |addq.l |#1,D0.. | |000009f0| 20 20 20 20 20 20 20 3b | 20 62 75 6d 70 20 73 70 | ;| bump sp| |00000a00| 69 6e 6e 69 6e 67 20 63 | 6f 75 6e 74 65 72 0d 20 |inning c|ounter. | |00000a10| 20 20 20 20 20 20 20 63 | 6d 70 2e 77 20 20 20 23 | c|mp.w #| |00000a20| 72 65 71 6e 6f 6e 65 2c | 69 72 65 71 28 41 30 29 |reqnone,|ireq(A0)| |00000a30| 20 20 20 20 20 20 20 3b | 20 69 73 20 6e 6f 74 68 | ;| is noth| |00000a40| 69 6e 67 20 77 61 69 74 | 69 6e 67 20 74 6f 20 68 |ing wait|ing to h| |00000a50| 61 70 70 65 6e 3f 0d 20 | 20 20 20 20 20 20 20 62 |appen?. | b| |00000a60| 6e 65 2e 73 20 20 20 76 | 69 64 77 32 09 09 20 20 |ne.s v|idw2.. | |00000a70| 20 20 20 20 20 20 3b 20 | 73 6f 6d 65 74 68 69 6e | ; |somethin| |00000a80| 67 20 70 65 6e 64 69 6e | 67 3a 20 64 6f 6e 27 74 |g pendin|g: don't| |00000a90| 20 72 65 74 75 72 6e 20 | 79 65 74 0d 0d 20 20 20 | return |yet.. | |00000aa0| 20 20 20 20 20 6d 6f 76 | 65 2e 6c 20 20 44 30 2c | mov|e.l D0,| |00000ab0| 28 53 50 29 09 09 20 20 | 20 20 20 20 20 20 3b 20 |(SP).. | ; | |00000ac0| 72 65 74 75 72 6e 20 d2 | 74 69 6d 65 d3 20 77 61 |return .|time. wa| |00000ad0| 69 74 65 64 0d 20 20 20 | 20 20 20 20 20 6a 6d 70 |ited. | jmp| |00000ae0| 20 20 20 20 20 28 41 31 | 29 09 09 20 20 20 20 20 | (A1|).. | |00000af0| 20 20 20 3b 20 72 65 74 | 75 72 6e 0d 0d 3b 20 2d | ; ret|urn..; -| |00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 3b 0d 3b |--------|---..;.;| |00000b50| 20 70 72 6f 63 65 64 75 | 72 65 20 76 69 64 73 74 | procedu|re vidst| |00000b60| 61 72 74 20 28 62 6c 6f | 63 6b 3a 20 70 74 72 3b |art (blo|ck: ptr;| |00000b70| 20 70 65 72 69 6f 64 3a | 20 69 6e 74 65 67 65 72 | period:| integer| |00000b80| 29 3b 20 65 78 74 65 72 | 6e 61 6c 3b 0d 3b 0d 0d |); exter|nal;.;..| |00000b90| 76 69 64 73 74 61 72 74 | 3a 0d 20 20 20 20 20 20 |vidstart|:. | |00000ba0| 20 20 6d 6f 76 65 2e 6c | 20 20 36 28 53 50 29 2c | move.l| 6(SP),| |00000bb0| 41 30 09 20 20 20 20 20 | 20 20 20 3b 20 70 6f 69 |A0. | ; poi| |00000bc0| 6e 74 20 74 6f 20 56 42 | 4c 20 62 6c 6f 63 6b 20 |nt to VB|L block | |00000bd0| 28 61 6c 73 6f 20 69 6e | 66 6f 20 62 6c 6f 63 6b |(also in|fo block| |00000be0| 29 0d 20 20 20 20 20 20 | 20 20 6d 6f 76 65 2e 77 |). | move.w| |00000bf0| 20 20 34 28 53 50 29 2c | 44 30 09 20 20 20 20 20 | 4(SP),|D0. | |00000c00| 20 20 20 3b 20 70 69 63 | 6b 20 75 70 20 64 65 73 | ; pic|k up des| |00000c10| 69 72 65 64 20 70 65 72 | 69 6f 64 0d 0d 20 20 20 |ired per|iod.. | |00000c20| 20 20 20 20 20 6d 6f 76 | 65 2e 77 20 20 23 72 65 | mov|e.w #re| |00000c30| 71 6e 6f 6e 65 2c 69 72 | 65 71 28 41 30 29 20 20 |qnone,ir|eq(A0) | |00000c40| 20 20 20 20 20 3b 20 69 | 6e 69 74 69 61 6c 69 7a | ; i|nitializ| |00000c50| 65 20 72 65 71 75 65 73 | 74 20 69 6e 66 6f 20 74 |e reques|t info t| |00000c60| 6f 20 d2 6e 6f 6e 65 d3 | 0d 20 20 20 20 20 20 20 |o .none.|. | |00000c70| 20 6d 6f 76 65 2e 77 20 | 20 44 30 2c 69 70 65 72 | move.w | D0,iper| |00000c80| 69 6f 64 28 41 30 29 09 | 20 20 20 20 20 20 20 20 |iod(A0).| | |00000c90| 3b 20 73 61 76 65 20 70 | 65 72 69 6f 64 0d 20 20 |; save p|eriod. | |00000ca0| 20 20 20 20 20 20 63 6c | 72 2e 6c 20 20 20 69 64 | cl|r.l id| |00000cb0| 65 6c 61 79 73 28 41 30 | 29 09 20 20 20 20 20 20 |elays(A0|). | |00000cc0| 20 20 3b 20 6e 6f 20 64 | 65 6c 61 79 73 20 73 65 | ; no d|elays se| |00000cd0| 65 6e 20 79 65 74 0d 0d | 20 20 20 20 20 20 20 20 |en yet..| | |00000ce0| 6d 6f 76 65 2e 77 20 20 | 23 76 54 79 70 65 2c 76 |move.w |#vType,v| |00000cf0| 62 6c 54 79 70 65 28 41 | 30 29 20 20 20 20 20 20 |blType(A|0) | |00000d00| 3b 20 73 65 74 20 74 68 | 65 20 74 79 70 65 20 6f |; set th|e type o| |00000d10| 66 20 71 75 65 75 65 20 | 65 6c 65 6d 65 6e 74 0d |f queue |element.| |00000d20| 20 20 20 20 20 20 20 20 | 6c 65 61 20 20 20 20 20 | |lea | |00000d30| 76 62 6c 2c 41 31 09 09 | 20 20 20 20 20 20 20 20 |vbl,A1..| | |00000d40| 3b 20 70 6f 69 6e 74 20 | 74 6f 20 56 42 4c 20 72 |; point |to VBL r| |00000d50| 6f 75 74 69 6e 65 20 74 | 6f 20 63 61 6c 6c 0d 20 |outine t|o call. | |00000d60| 20 20 20 20 20 20 20 6d | 6f 76 65 2e 6c 20 20 41 | m|ove.l A| |00000d70| 31 2c 76 62 6c 41 64 64 | 72 28 41 30 29 09 20 20 |1,vblAdd|r(A0). | |00000d80| 20 20 20 20 20 20 3b 20 | 73 61 76 65 20 74 68 65 | ; |save the| |00000d90| 20 61 64 64 72 65 73 73 | 20 6f 66 20 74 68 65 20 | address| of the | |00000da0| 72 6f 75 74 69 6e 65 0d | 20 20 20 20 20 20 20 20 |routine.| | |00000db0| 6d 6f 76 65 2e 77 20 20 | 44 30 2c 76 62 6c 43 6f |move.w |D0,vblCo| |00000dc0| 75 6e 74 28 41 30 29 09 | 20 20 20 20 20 20 20 20 |unt(A0).| | |00000dd0| 3b 20 73 65 74 20 74 69 | 6d 65 20 74 6f 20 77 61 |; set ti|me to wa| |00000de0| 69 74 20 66 6f 72 20 74 | 68 65 20 66 69 72 73 74 |it for t|he first| |00000df0| 20 63 61 6c 6c 0d 20 20 | 20 20 20 20 20 20 63 6c | call. | cl| |00000e00| 72 2e 77 20 20 20 76 62 | 6c 50 68 61 73 65 28 41 |r.w vb|lPhase(A| |00000e10| 30 29 09 20 20 20 20 20 | 20 20 20 3b 20 7a 65 72 |0). | ; zer| |00000e20| 6f 20 70 68 61 73 65 20 | 2d 2d 20 64 6f 20 49 20 |o phase |-- do I | |00000e30| 6e 65 65 64 20 74 6f 20 | 64 6f 20 74 68 69 73 3f |need to |do this?| |00000e40| 0d 0d 20 20 20 20 20 20 | 20 20 5f 76 49 6e 73 74 |.. | _vInst| |00000e50| 61 6c 6c 09 09 20 20 20 | 20 20 20 20 20 3b 20 69 |all.. | ; i| |00000e60| 6e 73 74 61 6c 6c 20 74 | 68 65 20 76 65 72 74 69 |nstall t|he verti| |00000e70| 63 61 6c 20 72 65 74 72 | 61 63 65 20 74 61 73 6b |cal retr|ace task| |00000e80| 0d 20 20 20 20 20 20 20 | 20 74 73 74 2e 77 20 20 |. | tst.w | |00000e90| 20 44 30 09 09 20 20 20 | 20 20 20 20 20 3b 20 67 | D0.. | ; g| |00000ea0| 6f 6f 64 20 73 74 61 74 | 75 73 3f 0d 20 20 20 20 |ood stat|us?. | |00000eb0| 20 20 20 20 62 6e 65 2e | 73 20 20 20 64 65 61 74 | bne.|s deat| |00000ec0| 68 09 09 20 20 20 20 20 | 20 20 20 3b 20 6e 6f 3a |h.. | ; no:| |00000ed0| 20 62 61 67 20 69 74 0d | 0d 40 31 20 20 20 20 20 | bag it.|.@1 | |00000ee0| 20 6d 6f 76 65 2e 6c 20 | 20 28 53 50 29 2b 2c 41 | move.l | (SP)+,A| |00000ef0| 30 09 20 20 20 20 20 20 | 20 20 3b 20 70 6f 70 20 |0. | ; pop | |00000f00| 72 65 74 75 72 6e 0d 20 | 20 20 20 20 20 20 20 61 |return. | a| |00000f10| 64 64 71 2e 6c 20 20 23 | 34 2b 32 2c 53 50 09 09 |ddq.l #|4+2,SP..| |00000f20| 20 20 20 20 20 20 20 20 | 3b 20 64 69 6e 67 20 6f | |; ding o| |00000f30| 6e 65 20 6c 6f 6e 67 2c | 20 6f 6e 65 20 69 6e 74 |ne long,| one int| |00000f40| 65 67 65 72 20 70 61 72 | 61 6d 65 74 65 72 0d 20 |eger par|ameter. | |00000f50| 20 20 20 20 20 20 20 6a | 6d 70 20 20 20 20 20 28 | j|mp (| |00000f60| 41 30 29 09 09 20 20 20 | 20 20 20 20 20 3b 20 61 |A0).. | ; a| |00000f70| 6e 64 20 72 65 74 75 72 | 6e 20 77 69 74 68 20 74 |nd retur|n with t| |00000f80| 68 65 20 74 61 73 6b 20 | 71 75 65 75 65 64 0d 0d |he task |queued..| |00000f90| 3b 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |; ------|--------| |00000fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00000fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 0d |--------|------..| |00000fe0| 3b 20 74 68 69 73 20 69 | 73 20 6f 75 72 20 65 6e |; this i|s our en| |00000ff0| 74 72 79 20 70 6f 69 6e | 74 20 66 72 6f 6d 20 74 |try poin|t from t| |00001000| 68 65 20 76 65 72 74 69 | 63 61 6c 20 72 65 74 72 |he verti|cal retr| |00001010| 61 63 65 20 6d 61 6e 61 | 67 65 72 2e 0d 3b 20 65 |ace mana|ger..; e| |00001020| 6e 74 65 72 65 64 20 62 | 79 3a 20 41 30 20 70 6f |ntered b|y: A0 po| |00001030| 69 6e 74 73 20 74 6f 20 | 56 42 4c 20 62 6c 6f 63 |ints to |VBL bloc| |00001040| 6b 3b 20 6f 75 72 20 73 | 74 61 74 65 20 69 6e 66 |k; our s|tate inf| |00001050| 6f 72 6d 61 74 69 6f 6e | 20 66 6f 6c 6c 6f 77 73 |ormation| follows| |00001060| 20 74 68 69 73 2e 0d 3b | 0d 3b 20 2d 20 69 66 20 | this..;|.; - if | |00001070| 6e 6f 20 72 65 71 75 65 | 73 74 20 68 61 73 20 62 |no reque|st has b| |00001080| 65 65 6e 20 6d 61 64 65 | 20 62 79 20 74 68 65 20 |een made| by the | |00001090| 74 69 6d 65 20 77 65 27 | 72 65 20 63 61 6c 6c 65 |time we'|re calle| |000010a0| 64 2c 20 74 68 65 20 6d | 61 69 6e 20 70 72 6f 67 |d, the m|ain prog| |000010b0| 72 61 6d 0d 3b 20 20 20 | 64 69 64 6e 27 74 20 68 |ram.; |didn't h| |000010c0| 61 76 65 20 61 20 66 72 | 61 6d 65 20 74 6f 20 62 |ave a fr|ame to b| |000010d0| 65 20 64 72 61 77 6e 20 | 69 6e 20 74 69 6d 65 3b |e drawn |in time;| |000010e0| 20 69 6e 20 74 68 69 73 | 20 63 61 73 65 2c 20 77 | in this| case, w| |000010f0| 65 20 69 6e 63 72 65 6d | 65 6e 74 20 74 68 65 0d |e increm|ent the.| |00001100| 3b 20 20 20 d2 64 65 6c | 61 79 73 d3 20 63 6f 75 |; .del|ays. cou| |00001110| 6e 74 65 72 20 61 6e 64 | 20 73 65 74 20 74 68 65 |nter and| set the| |00001120| 20 61 6c 61 72 6d 20 74 | 6f 20 77 61 6b 65 20 75 | alarm t|o wake u| |00001130| 73 20 75 70 20 6f 6e 65 | 20 74 69 63 6b 20 66 72 |s up one| tick fr| |00001140| 6f 6d 20 6e 6f 77 2e 0d | 3b 20 2d 20 69 66 20 61 |om now..|; - if a| |00001150| 20 72 65 71 75 65 73 74 | 20 69 73 20 74 68 65 72 | request| is ther| |00001160| 65 2c 20 77 65 20 64 6f | 20 69 74 20 61 6e 64 20 |e, we do| it and | |00001170| 73 65 74 20 74 68 65 20 | 61 6c 61 72 6d 20 66 6f |set the |alarm fo| |00001180| 72 20 6f 6e 65 20 66 75 | 6c 6c 20 70 65 72 69 6f |r one fu|ll perio| |00001190| 64 2e 0d 0d 76 62 6c 3a | 20 20 20 20 6d 6f 76 65 |d...vbl:| move| |000011a0| 2e 77 20 20 69 72 65 71 | 28 41 30 29 2c 44 30 09 |.w ireq|(A0),D0.| |000011b0| 20 20 20 20 20 20 20 20 | 3b 20 70 69 63 6b 20 75 | |; pick u| |000011c0| 70 20 74 68 65 20 72 65 | 71 75 65 73 74 0d 20 20 |p the re|quest. | |000011d0| 20 20 20 20 20 20 6d 6f | 76 65 2e 77 20 20 23 72 | mo|ve.w #r| |000011e0| 65 71 6e 6f 6e 65 2c 69 | 72 65 71 28 41 30 29 20 |eqnone,i|req(A0) | |000011f0| 20 20 20 20 20 20 3b 20 | 63 61 6e 63 65 6c 20 61 | ; |cancel a| |00001200| 6e 79 20 70 65 6e 64 69 | 6e 67 20 72 65 71 75 65 |ny pendi|ng reque| |00001210| 73 74 0d 20 20 20 20 20 | 20 20 20 6d 6f 76 65 2e |st. | move.| |00001220| 6c 20 20 76 69 61 62 61 | 73 65 2c 41 31 09 09 20 |l viaba|se,A1.. | |00001230| 20 20 20 20 20 20 20 3b | 20 70 6f 69 6e 74 20 74 | ;| point t| |00001240| 6f 20 62 61 73 65 20 6f | 66 20 56 49 41 20 73 74 |o base o|f VIA st| |00001250| 75 66 66 0d 0d 20 20 20 | 20 20 20 20 20 64 62 72 |uff.. | dbr| |00001260| 61 20 20 20 20 44 30 2c | 76 62 6c 31 09 09 20 20 |a D0,|vbl1.. | |00001270| 20 20 20 20 20 20 3b 20 | 73 6b 69 70 20 69 66 20 | ; |skip if | |00001280| 6e 6f 74 20 7a 65 72 6f | 0d 20 20 20 20 20 20 20 |not zero|. | |00001290| 20 62 63 6c 72 20 20 20 | 20 23 36 2c 24 31 45 30 | bclr | #6,$1E0| |000012a0| 30 28 41 31 29 09 20 20 | 20 20 20 20 20 20 3b 20 |0(A1). | ; | |000012b0| 61 6c 74 65 72 6e 61 74 | 65 20 73 63 72 65 65 6e |alternat|e screen| |000012c0| 3a 20 63 6c 65 61 72 20 | 74 68 65 20 62 69 74 0d |: clear |the bit.| |000012d0| 20 20 20 20 20 20 20 20 | 6d 6f 76 65 2e 77 20 20 | |move.w | |000012e0| 69 70 65 72 69 6f 64 28 | 41 30 29 2c 76 62 6c 43 |iperiod(|A0),vblC| |000012f0| 6f 75 6e 74 28 41 30 29 | 20 3b 20 61 73 6b 20 66 |ount(A0)| ; ask f| |00001300| 6f 72 20 6e 65 78 74 20 | 77 61 6b 65 2d 75 70 20 |or next |wake-up | |00001310| 61 74 20 75 73 75 61 6c | 20 74 69 6d 65 0d 20 20 |at usual| time. | |00001320| 20 20 20 20 20 20 72 74 | 73 09 09 09 20 20 20 20 | rt|s... | |00001330| 20 20 20 20 3b 20 65 78 | 69 74 0d 0d 76 62 6c 31 | ; ex|it..vbl1| |00001340| 3a 20 20 20 64 62 72 61 | 20 20 20 20 44 30 2c 76 |: dbra| D0,v| |00001350| 62 6c 32 09 09 20 20 20 | 20 20 20 20 20 3b 20 77 |bl2.. | ; w| |00001360| 61 73 6e 27 74 20 7a 65 | 72 6f 3b 20 73 6b 69 70 |asn't ze|ro; skip| |00001370| 20 69 66 20 6e 6f 74 20 | 6f 6e 65 0d 20 20 20 20 | if not |one. | |00001380| 20 20 20 20 62 73 65 74 | 20 20 20 20 23 36 2c 24 | bset| #6,$| |00001390| 31 45 30 30 28 41 31 29 | 09 20 20 20 20 20 20 20 |1E00(A1)|. | |000013a0| 20 3b 20 64 65 66 61 75 | 6c 74 20 73 63 72 65 65 | ; defau|lt scree| |000013b0| 6e 3a 20 73 65 74 20 74 | 68 65 20 62 69 74 0d 20 |n: set t|he bit. | |000013c0| 20 20 20 20 20 20 20 6d | 6f 76 65 2e 77 20 20 69 | m|ove.w i| |000013d0| 70 65 72 69 6f 64 28 41 | 30 29 2c 76 62 6c 43 6f |period(A|0),vblCo| |000013e0| 75 6e 74 28 41 30 29 20 | 3b 20 61 73 6b 20 66 6f |unt(A0) |; ask fo| |000013f0| 72 20 6e 65 78 74 20 77 | 61 6b 65 2d 75 70 20 61 |r next w|ake-up a| |00001400| 74 20 75 73 75 61 6c 20 | 74 69 6d 65 0d 20 20 20 |t usual |time. | |00001410| 20 20 20 20 20 72 74 73 | 09 09 09 20 20 20 20 20 | rts|... | |00001420| 20 20 20 3b 20 74 61 20 | 64 61 0d 0d 76 62 6c 32 | ; ta |da..vbl2| |00001430| 3a 20 20 20 64 62 72 61 | 20 20 20 20 44 30 2c 76 |: dbra| D0,v| |00001440| 62 6c 33 09 09 20 20 20 | 20 20 20 20 20 3b 20 77 |bl3.. | ; w| |00001450| 61 73 6e 27 74 20 7a 65 | 72 6f 20 6f 72 20 6f 6e |asn't ze|ro or on| |00001460| 65 3b 20 73 6b 69 70 20 | 69 66 20 6e 6f 74 20 74 |e; skip |if not t| |00001470| 77 6f 0d 20 20 20 20 20 | 20 20 20 63 6c 72 2e 77 |wo. | clr.w| |00001480| 20 20 20 76 62 6c 43 6f | 75 6e 74 28 41 30 29 09 | vblCo|unt(A0).| |00001490| 20 20 20 20 20 20 20 20 | 3b 20 73 74 6f 70 3a 20 | |; stop: | |000014a0| 77 65 20 64 6f 6e 27 74 | 20 77 61 6e 74 20 74 6f |we don't| want to| |000014b0| 20 72 75 6e 20 61 67 61 | 69 6e 0d 20 20 20 20 20 | run aga|in. | |000014c0| 20 20 20 62 73 65 74 20 | 20 20 20 23 36 2c 24 31 | bset | #6,$1| |000014d0| 45 30 30 28 41 31 29 09 | 20 20 20 20 20 20 20 20 |E00(A1).| | |000014e0| 3b 20 64 65 66 61 75 6c | 74 20 73 63 72 65 65 6e |; defaul|t screen| |000014f0| 20 28 6d 61 6b 65 20 66 | 69 6e 64 65 72 20 68 61 | (make f|inder ha| |00001500| 70 70 79 29 0d 20 20 20 | 20 20 20 20 20 72 74 73 |ppy). | rts| |00001510| 09 09 09 20 20 20 20 20 | 20 20 20 3b 20 68 6f 6d |... | ; hom| |00001520| 65 20 66 6f 72 20 74 68 | 65 20 6c 61 73 74 20 74 |e for th|e last t| |00001530| 69 6d 65 0d 0d 76 62 6c | 33 3a 20 20 20 64 62 72 |ime..vbl|3: dbr| |00001540| 61 20 20 20 20 44 30 2c | 64 65 61 74 68 09 20 20 |a D0,|death. | |00001550| 20 20 20 20 20 20 3b 20 | 77 61 73 6e 27 74 20 30 | ; |wasn't 0| |00001560| 2c 31 2c 20 6f 72 20 32 | 3b 20 64 69 65 20 69 66 |,1, or 2|; die if| |00001570| 20 6e 6f 74 20 74 68 72 | 65 65 0d 20 20 20 20 20 | not thr|ee. | |00001580| 20 20 20 6d 6f 76 65 2e | 77 20 20 23 31 2c 76 62 | move.|w #1,vb| |00001590| 6c 43 6f 75 6e 74 28 41 | 30 29 09 20 20 20 20 20 |lCount(A|0). | |000015a0| 20 20 20 3b 20 6e 6f 20 | 72 65 71 75 65 73 74 3a | ; no |request:| |000015b0| 20 72 65 2d 72 75 6e 20 | 69 6e 20 6a 75 73 74 20 | re-run |in just | |000015c0| 6f 6e 65 20 74 69 63 6b | 0d 20 20 20 20 20 20 20 |one tick|. | |000015d0| 20 61 64 64 2e 6c 20 20 | 20 23 31 2c 69 64 65 6c | add.l | #1,idel| |000015e0| 61 79 73 28 41 30 29 09 | 20 20 20 20 20 20 20 20 |ays(A0).| | |000015f0| 3b 20 6b 65 65 70 20 73 | 74 61 74 73 20 6f 6e 20 |; keep s|tats on | |00001600| 68 6f 77 20 6f 66 74 65 | 6e 20 74 68 69 73 20 68 |how ofte|n this h| |00001610| 61 70 70 65 6e 73 0d 20 | 20 20 20 20 20 20 20 72 |appens. | r| |00001620| 74 73 09 09 09 20 20 20 | 20 20 20 20 20 3b 20 61 |ts... | ; a| |00001630| 6e 64 20 72 65 74 75 72 | 6e 0d 0d 64 65 61 74 68 |nd retur|n..death| |00001640| 3a 20 20 44 43 2e 4c 20 | 20 20 24 36 30 46 45 09 |: DC.L | $60FE.| |00001650| 09 20 20 20 20 20 20 20 | 20 3b 20 65 78 65 63 75 |. | ; execu| |00001660| 74 65 20 61 6e 20 d2 49 | 4c 4c 45 47 41 4c d3 20 |te an .I|LLEGAL. | |00001670| 69 6e 73 74 72 75 63 74 | 69 6f 6e 0d 0d 3b 20 2d |instruct|ion..; -| |00001680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |00001690| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000016a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000016b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------| |000016c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 3b 20 70 |--------|---..; p| |000016d0| 72 6f 63 65 64 75 72 65 | 20 67 65 74 61 6c 74 73 |rocedure| getalts| |000016e0| 63 72 65 65 6e 3b 20 65 | 78 74 65 72 6e 61 6c 3b |creen; e|xternal;| |000016f0| 0d 3b 20 74 68 69 73 20 | 73 68 6f 75 6c 64 20 62 |.; this |should b| |00001700| 65 20 74 68 65 20 56 45 | 52 59 20 66 69 72 73 74 |e the VE|RY first| |00001710| 20 74 68 69 6e 67 20 79 | 6f 75 72 20 61 70 70 6c | thing y|our appl| |00001720| 69 63 61 74 69 6f 6e 20 | 63 61 6c 6c 73 2e 0d 3b |ication |calls..;| |00001730| 20 2d 20 69 66 20 74 68 | 65 20 61 6c 74 65 72 6e | - if th|e altern| |00001740| 61 74 65 20 76 69 64 65 | 6f 20 73 63 72 65 65 6e |ate vide|o screen| |00001750| 20 49 53 20 63 6f 6e 66 | 69 67 75 72 65 64 2c 20 | IS conf|igured, | |00001760| 77 65 20 72 65 74 75 72 | 6e 20 61 6e 64 20 64 6f |we retur|n and do| |00001770| 20 6e 6f 74 68 69 6e 67 | 2e 0d 3b 20 2d 20 69 66 | nothing|..; - if| |00001780| 20 74 68 65 20 73 63 72 | 65 65 6e 20 69 73 6e 27 | the scr|een isn'| |00001790| 74 20 74 68 65 72 65 2c | 20 77 65 20 66 69 6e 64 |t there,| we find| |000017a0| 20 6f 75 74 20 74 68 65 | 20 61 70 70 6c 69 63 61 | out the| applica| |000017b0| 74 69 6f 6e 27 73 20 6e | 61 6d 65 20 66 72 6f 6d |tion's n|ame from| |000017c0| 20 74 68 65 0d 3b 20 20 | 20 61 70 70 6c 69 63 61 | the.; | applica| |000017d0| 74 69 6f 6e 20 70 61 72 | 61 6d 65 74 65 72 73 20 |tion par|ameters | |000017e0| 61 6e 64 20 72 65 6c 61 | 75 6e 63 68 20 6f 75 72 |and rela|unch our| |000017f0| 73 65 6c 76 65 73 2c 20 | 63 6f 72 72 65 63 74 6c |selves, |correctl| |00001800| 79 20 63 6f 6e 66 69 67 | 75 72 65 64 2e 0d 0d 0d |y config|ured....| |00001810| 67 65 74 61 6c 74 73 63 | 72 65 65 6e 3a 0d 20 20 |getaltsc|reen:. | |00001820| 20 20 20 20 20 20 74 73 | 74 2e 6c 20 20 20 43 75 | ts|t.l Cu| |00001830| 72 50 61 67 65 09 20 20 | 20 20 20 20 20 20 3b 20 |rPage. | ; | |00001840| 70 69 63 6b 20 75 70 20 | 63 75 72 72 65 6e 74 20 |pick up |current | |00001850| 73 63 72 65 65 6e 20 63 | 6f 6e 66 69 67 75 72 61 |screen c|onfigura| |00001860| 74 69 6f 6e 0d 20 20 20 | 20 20 20 20 20 62 70 6c |tion. | bpl| |00001870| 2e 73 20 20 20 72 65 6c | 61 75 6e 63 68 09 20 20 |.s rel|aunch. | |00001880| 20 20 20 20 20 20 3b 20 | 6e 65 67 61 74 69 76 65 | ; |negative| |00001890| 20 6d 65 61 6e 73 20 77 | 65 20 67 6f 74 20 61 6c | means w|e got al| |000018a0| 74 2e 20 73 63 72 65 65 | 6e 0d 20 20 20 20 20 20 |t. scree|n. | |000018b0| 20 20 72 74 73 09 09 09 | 20 20 20 20 20 20 20 20 | rts...| | |000018c0| 3b 20 61 6c 6c 27 73 20 | 77 65 6c 6c 3b 20 72 65 |; all's |well; re| |000018d0| 74 75 72 6e 0d 0d 72 65 | 6c 61 75 6e 63 68 3a 09 |turn..re|launch:.| |000018e0| 09 09 20 20 20 20 20 20 | 20 20 3b 20 68 65 72 65 |.. | ; here| |000018f0| 20 77 68 65 6e 20 77 65 | 20 68 61 76 65 20 74 6f | when we| have to| |00001900| 20 72 65 73 74 61 72 74 | 0d 20 20 20 20 20 20 20 | restart|. | |00001910| 20 73 75 62 2e 6c 20 20 | 20 23 33 32 2b 34 2b 32 | sub.l | #32+4+2| |00001920| 2c 53 50 09 20 20 20 20 | 20 20 20 20 3b 20 72 6f |,SP. | ; ro| |00001930| 6f 6d 20 66 6f 72 20 61 | 70 4e 61 6d 65 2c 20 61 |om for a|pName, a| |00001940| 70 52 65 66 4e 75 6d 2c | 20 61 70 50 61 72 61 6d |pRefNum,| apParam| |00001950| 0d 20 20 20 20 20 20 20 | 20 6d 6f 76 65 2e 6c 20 |. | move.l | |00001960| 20 53 50 2c 41 30 09 09 | 20 20 20 20 20 20 20 20 | SP,A0..| | |00001970| 3b 20 70 6f 69 6e 74 20 | 74 6f 20 62 61 73 65 20 |; point |to base | |00001980| 6f 66 20 74 68 69 73 20 | 73 74 75 66 66 0d 20 20 |of this |stuff. | |00001990| 20 20 20 20 20 20 70 65 | 61 20 20 20 20 20 34 2b | pe|a 4+| |000019a0| 32 28 41 30 29 09 09 20 | 20 20 20 20 20 20 20 3b |2(A0).. | ;| |000019b0| 20 70 75 73 68 20 61 72 | 67 31 3a 20 56 41 52 20 | push ar|g1: VAR | |000019c0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 70 4e 61 6d |pointer |to apNam| |000019d0| 65 0d 20 20 20 20 20 20 | 20 20 70 65 61 20 20 20 |e. | pea | |000019e0| 20 20 34 28 41 30 29 09 | 09 20 20 20 20 20 20 20 | 4(A0).|. | |000019f0| 20 3b 20 70 75 73 68 20 | 61 72 67 32 3a 20 56 41 | ; push |arg2: VA| |00001a00| 52 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 70 52 |R pointe|r to apR| |00001a10| 65 66 4e 75 6d 0d 20 20 | 20 20 20 20 20 20 70 65 |efNum. | pe| |00001a20| 61 20 20 20 20 20 30 28 | 41 30 29 09 09 20 20 20 |a 0(|A0).. | |00001a30| 20 20 20 20 20 3b 20 70 | 75 73 68 20 61 72 67 33 | ; p|ush arg3| |00001a40| 3a 20 56 41 52 20 70 6f | 69 6e 74 65 72 20 74 6f |: VAR po|inter to| |00001a50| 20 61 70 50 61 72 61 6d | 0d 20 20 20 20 20 20 20 | apParam|. | |00001a60| 20 5f 47 65 74 41 70 70 | 50 61 72 6d 73 09 09 20 | _GetApp|Parms.. | |00001a70| 20 20 20 20 20 20 20 3b | 20 66 69 6c 6c 20 69 6e | ;| fill in| |00001a80| 20 6e 61 6d 65 2c 20 6f | 74 68 65 72 20 6a 75 6e | name, o|ther jun| |00001a90| 6b 3b 20 70 6f 70 20 70 | 61 72 61 6d 73 0d 0d 20 |k; pop p|arams.. | |00001aa0| 20 20 20 20 20 20 20 3b | 20 4e 6f 77 20 61 70 50 | ;| Now apP| |00001ab0| 61 72 61 6d 2c 20 61 70 | 52 65 66 4e 75 6d 20 61 |aram, ap|RefNum a| |00001ac0| 6e 64 20 28 69 6d 70 6f | 72 74 61 6e 74 6c 79 29 |nd (impo|rtantly)| |00001ad0| 20 61 70 4e 61 6d 65 20 | 61 72 65 20 69 6e 20 73 | apName |are in s| |00001ae0| 74 61 63 6b 20 74 65 6d | 70 73 2e 0d 20 20 20 20 |tack tem|ps.. | |00001af0| 20 20 20 20 6c 65 61 20 | 20 20 20 20 34 2b 32 28 | lea | 4+2(| |00001b00| 53 50 29 2c 41 30 09 20 | 20 20 20 20 20 20 20 3b |SP),A0. | ;| |00001b10| 20 70 6f 69 6e 74 20 74 | 6f 20 74 68 65 20 6e 61 | point t|o the na| |00001b20| 6d 65 20 77 65 20 6a 75 | 73 74 20 67 6f 74 0d 20 |me we ju|st got. | |00001b30| 20 20 20 20 20 20 20 6d | 6f 76 65 2e 6c 20 20 23 | m|ove.l #| |00001b40| 2d 31 2c 2d 28 53 50 29 | 09 20 20 20 20 20 20 20 |-1,-(SP)|. | |00001b50| 20 3b 20 2d 31 20 61 73 | 6b 73 20 66 6f 72 20 61 | ; -1 as|ks for a| |00001b60| 6c 74 65 72 6e 61 74 65 | 20 73 63 72 65 65 6e 2e |lternate| screen.| |00001b70| 2e 2e 0d 20 20 20 20 20 | 20 20 20 6d 6f 76 65 2e |... | move.| |00001b80| 6c 20 20 41 30 2c 2d 28 | 53 50 29 09 20 20 20 20 |l A0,-(|SP). | |00001b90| 20 20 20 20 3b 20 2e 2e | 2e 61 6e 64 20 70 6f 69 | ; ..|.and poi| |00001ba0| 6e 74 20 74 6f 20 6e 61 | 6d 65 20 74 6f 20 6c 61 |nt to na|me to la| |00001bb0| 75 6e 63 68 0d 20 20 20 | 20 20 20 20 20 6d 6f 76 |unch. | mov| |00001bc0| 65 2e 6c 20 20 53 50 2c | 41 30 09 09 20 20 20 20 |e.l SP,|A0.. | |00001bd0| 20 20 20 20 3b 20 70 6f | 69 6e 74 20 74 6f 20 6e | ; po|int to n| |00001be0| 61 6d 65 20 70 74 72 20 | 61 6e 64 20 66 6c 61 67 |ame ptr |and flag| |00001bf0| 73 20 77 69 74 68 20 41 | 30 0d 20 20 20 20 20 20 |s with A|0. | |00001c00| 20 20 5f 6c 61 75 6e 63 | 68 09 09 09 20 20 20 20 | _launc|h... | |00001c10| 20 20 20 20 3b 20 6c 61 | 75 6e 63 68 20 6f 75 72 | ; la|unch our| |00001c20| 73 65 6c 76 65 73 2c 20 | 77 69 74 68 20 61 6c 74 |selves, |with alt| |00001c30| 20 73 63 72 65 65 6e 0d | 20 20 20 20 20 20 20 20 | screen.| | |00001c40| 62 72 61 2e 73 20 20 20 | 64 65 61 74 68 09 09 20 |bra.s |death.. | |00001c50| 20 20 20 20 20 20 20 3b | 20 73 68 6f 75 6c 64 6e | ;| shouldn| |00001c60| 27 74 20 72 65 61 63 68 | 20 68 65 72 65 21 0d 0d |'t reach| here!..| |00001c70| 65 6e 64 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |end.....|........| |00001c80| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F| |00001c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001cb0| 0c 76 69 64 73 74 75 66 | 66 2e 61 73 6d 66 02 00 |.vidstuf|f.asmf..| |00001cc0| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 00 00 40 |..TEXTED|IT.....@| |00001cd0| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 00 00 40 |..TEXTED|IT.....@| |00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001cf0| 00 00 9a de da f8 00 00 | 1b f4 00 00 01 5c 00 00 |........|.....\..| |00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001d80| 00 00 00 0a 00 09 06 4d | 6f 6e 61 63 6f 67 00 00 |.......M|onacog..| |00001d90| 00 04 00 06 00 08 00 00 | 01 00 00 00 01 16 00 00 |........|........| |00001da0| 00 16 00 00 00 46 00 00 | cc 24 02 94 00 00 00 1c |.....F..|.$......| |00001db0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB| |00001dc0| 00 00 00 1e 03 eb ff ff | 00 00 00 00 00 01 6d 86 |........|......m.| |00001dd0| 03 ec ff ff 00 00 00 0e | 00 01 6d 76 00 00 00 00 |........|..mv....| |00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+